package com.awenlchan.servicedemo;

import android.app.IntentService;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;

public class FTPService extends IntentService {
    public FTPService() {
        super("awenlchan");
    }

    /**
     * 取代onstartCommmand（）
     * @param intent
     */
    @Override
    protected void onHandleIntent(Intent intent) {
        Log.i("awenlchan",Thread.currentThread().getName());
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        Log.i("awenlchan","sleeping---");
    }
}
